/*
    @Author: simonyan 315082291@qq.com
    @Date: 2025-02-20 13:06:39
    @LastEditors: simonyan 315082291@qq.com
    @LastEditTime: 2025-02-20 13:17:44
    @FilePath: \01-AppFlow-gitea\CFDPost\CFDPostDataManager\CFDPostDataManager.cpp
    @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
#include "CFDPostDataManager.h"

using namespace DataManager;

CFDPostDataManager* CFDPostDataManager::m_instance = nullptr;
CFDPostDataManager::CFDPostDataManager() {
}

CFDPostDataManager* CFDPostDataManager::getInstance() {
    if (m_instance == nullptr) {
        m_instance = new CFDPostDataManager;
    }

    return m_instance;
}

void CFDPostDataManager::setTreeCurrentDataID(int dataID) {
    m_iTreeCurrentDataID = dataID;
}

int CFDPostDataManager::getTreeCurrentDataID() {
    return m_iTreeCurrentDataID;
}
